﻿using AlarmModule.Models;
using Microsoft.EntityFrameworkCore;
using MonitorModule.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//数据库上下文
namespace MonitorModule.DbContexts {
    public class MonitorDbContext : DbContext {
        //构造函数
        public MonitorDbContext(DbContextOptions<MonitorDbContext> options) : base(options) { }

        //
        public virtual DbSet<WorkShopModel> WorkShopModel { get; set; }
        public virtual DbSet<ModuleDetail> ModuleDetail { get; set; }
        public virtual DbSet<AlarmParameter> AlarmParameter { get; set; }

        public virtual DbSet<RaderModel> RaderModel { get; set; }
    }
}
